package com.zr.model;
/**
 * 构建user模型
 * @author Administrator
 *
 */
public class UserModel {

	private int sid;//用户的id号
	private String sname;//姓名
	private int hid;//寝室id 
	private String scollege;//学院
	private String ssex;//性别
	private int sage;//年龄
	private String sphone;//电话号码
	private String saddress;//地址
	private int spower;//权限
	private String spwt;//密码
	//用户所有属性的set和get方法

	public String getSname() {
		return sname;
	}
	public int getSid() {
		return sid;
	}
	public void setSid(int sid) {
		this.sid = sid;
	}
	public void setSname(String sname) {
		this.sname = sname;
	}
	public int getHid() {
		return hid;
	}
	public void setHid(int hid) {
		this.hid = hid;
	}
	public String getScollege() {
		return scollege;
	}
	public void setScollege(String scollege) {
		this.scollege = scollege;
	}
	public String getSsex() {
		return ssex;
	}
	public void setSsex(String ssex) {
		this.ssex = ssex;
	}
	public int getSage() {
		return sage;
	}
	public void setSage(int sage) {
		this.sage = sage;
	}
	public String getSphone() {
		return sphone;
	}
	public void setSphone(String sphone) {
		this.sphone = sphone;
	}
	public String getSaddress() {
		return saddress;
	}
	public void setSaddress(String saddress) {
		this.saddress = saddress;
	}
	public int getSpower() {
		return spower;
	}
	public void setSpower(int spower) {
		this.spower = spower;
	}
	public String getSpwt() {
		return spwt;
	}
	public void setSpwt(String spwt) {
		this.spwt = spwt;
	}
	//构造方法
	public UserModel(String sname, int hid, String scollege, String ssex, int sage, String sphone, String saddress,
			int spower, String spwt) {
		super();
		this.sname = sname;
		this.hid = hid;
		this.scollege = scollege;
		this.ssex = ssex;
		this.sage = sage;
		this.sphone = sphone;
		this.saddress = saddress;
		this.spower = spower;
		this.spwt = spwt;
	}
	public UserModel() {
		super();
		// TODO Auto-generated constructor stub
	}
	public UserModel(int sid, String spwt) {
		super();
		this.sid = sid;
		this.spwt = spwt;
	}

	public UserModel(int sid,String sname,String scollege,String ssex,int sage,int hid,String sphone,
			String saddress) {
		super();
		this.sid = sid;
		this.hid = hid;
		this.sage = sage;
		this.sname = sname;
		this.scollege = scollege;
		this.ssex = ssex;
		this.sphone = sphone;
		this.saddress = saddress;
	}
	@Override
	public String toString() {
		return sid+sname+sage+saddress+ssex+sphone+scollege+spwt;
	}


}
